package com.demo.rediscaffeine.msg;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @description:
 * @author：nihongyu
 * @date: 2023/4/19
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CacheMassage implements Serializable {

    private static final long serialVersionUID = -7615715088275079634L;

    private String cacheName;
    private CacheMsgType type;  //标识更新或删除操作
    private Object key;
    private Object value;
    private String msgSource;   //源主机标识，用来避免重复操作

}
